package cn.tedu.car.backend.checklist.service;

import cn.tedu.car.backend.checklist.mapper.PendingMapper;
import cn.tedu.car.backend.checklist.pojo.dto.PendingListParam;
import cn.tedu.car.backend.checklist.pojo.vo.PendingVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PendingServiceImpl implements PendingService{
    @Autowired
    private PendingMapper pendingMapper;

    @Override
    public List<PendingVO> selectList(PendingListParam pendingListParam) {
        List<PendingVO> ls = pendingMapper.selectPendingList(pendingListParam);
        return ls;
    }

    @Override
    public void deleteByNum(String orderNo) {
        pendingMapper.deleteByNum(orderNo);
    }
}
